package com.eascs.fp.common.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "fp_user")
public class MemberEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/** 用户状态(status 1:停用,0:启用) **/
	private static final int STATUS_USE = 0;
	private static final int STATUS_DISABLED = 1;

	@Id
	private String id;

	private String mobile;

	private String account;

	private String password;

	private int status;

	@Temporal(TemporalType.DATE)
	@Column(name = "create_time")
	private Date createTime;

	@Temporal(TemporalType.DATE)
	@Column(name = "update_time")
	private Date updateTime;

	public MemberEntity() {
		super();
		this.status = STATUS_USE;
	}

	public MemberEntity(String mobile, String password) {
		super();
		this.mobile = mobile;
		this.password = password;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "MemberEntity [id=" + id + ", mobile=" + mobile + ", account=" + account + ", password=" + password
				+ ", status=" + status + ", createTime=" + createTime + ", updateTime=" + updateTime + "]";
	}

}